Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
.NET
»
Topic:
Transform points?
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Transform points? (Read 1337 times)
0 Members and 1 Guest are viewing this topic.
krkec
Guest
Transform points?
«
on:
March 12, 2012, 03:48:50 AM »
Hi
Is there a way to transform point with some matrix like this x,y,z --------> x,0,y??
Logged
fixo
Guest
Re: Transform points?
«
Reply #1 on:
March 12, 2012, 05:09:19 AM »
Did you mean
p2= p2.TransformBy(your matrix here)?
~'J'~
Logged
krkec
Guest
Re: Transform points?
«
Reply #2 on:
March 12, 2012, 05:27:39 AM »
I mean for example p1(1,2,3) should be transformed to p2(1,0,2)
Logged
Kerry
Mesozoic relic
Seagull
Posts: 11654
class keyThumper<T>:ILazy<T>
Re: Transform points?
«
Reply #3 on:
March 12, 2012, 05:34:30 AM »
You don't need a matrix for that
Try this
Code - C#:
[Select]
Point3d p1
=
new
Point3d
(
1.0
,
2.0
,
3.0
)
;
Point3d p2
=
new
Point3d
(
p1
.
X
,
0.0
, p1
.
Y
)
;
Logged
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.
krkec
Guest
Re: Transform points?
«
Reply #4 on:
March 12, 2012, 01:35:54 PM »
Yes thats true
Thanks
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
.NET
»
Topic:
Transform points?